package com.boil.qz.safekavass.pojo;

/**
 * Created by ChenYong on 2017-05-24.
 * <br>
 * 根据举报月份统计举报情况的映射实体类。
 */
public class ReportCountByReportMonthVo {
    /**
     * 举报月份
     */
    private String reportMonth;
    /**
     * 举报来源
     */
    private String reportSource;
    /**
     * 举报次数
     */
    private Integer reportCount;

    /**
     * 默认构造器。
     */
    public ReportCountByReportMonthVo() {
        super();
    }

    public String getReportMonth() {
        return reportMonth;
    }

    public void setReportMonth(String reportMonth) {
        this.reportMonth = reportMonth;
    }

    public String getReportSource() {
        return reportSource;
    }

    public void setReportSource(String reportSource) {
        this.reportSource = reportSource;
    }

    public Integer getReportCount() {
        return reportCount;
    }

    public void setReportCount(Integer reportCount) {
        this.reportCount = reportCount;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ReportCountByReportMonthVo that = (ReportCountByReportMonthVo) o;

        if (reportMonth != null ? !reportMonth.equals(that.reportMonth) : that.reportMonth != null) return false;
        if (reportSource != null ? !reportSource.equals(that.reportSource) : that.reportSource != null) return false;
        return reportCount != null ? reportCount.equals(that.reportCount) : that.reportCount == null;
    }

    @Override
    public int hashCode() {
        int result = reportMonth != null ? reportMonth.hashCode() : 0;
        result = 31 * result + (reportSource != null ? reportSource.hashCode() : 0);
        result = 31 * result + (reportCount != null ? reportCount.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("ReportCountByReportMonthVo{");
        sb.append("reportMonth='").append(reportMonth).append('\'');
        sb.append(", reportSource='").append(reportSource).append('\'');
        sb.append(", reportCount=").append(reportCount);
        sb.append('}');
        return sb.toString();
    }
}